import easytrader

# ========== 初始化配置 ==========
user = easytrader.use('ths')
user.connect(r'E:\同花顺软件\同花顺\xiadan.exe')  # 替换为你的同花顺路径
#
print(user.balance)
print(user.position)
print(user.buy('162411', 0.55, 100))